<template>
  <div>登录</div>
</template>
<script>
import { GetCode } from "@/api/account";
import { onMounted, toRefs } from "vue";
export default {
  name: "login",
  setup() {
    const data = {};
    onMounted(() => {});
    // 登录提交
    const submit = () => {
      GetCode({ id: 11, name: "vv" }).then((res) => {
        console.log(res);
      });
    };
    return {
      ...toRefs(data),
      submit,
    };
  },
};
</script>

<style lang="scss"></style>
